63 #define SLAVE_ADDRESS 0x48
66 uint8_t
store[40] = { 9, 10, 11, 12, 13, 14, 15, 16, 17, 18};
72 WDT_A_hold(WDT_A_BASE);
75 GPIO_setAsPeripheralModuleFunctionInputPin(
81 USCI_B_I2C_initSlave(USCI_B0_BASE,
88 USCI_B_I2C_setMode(USCI_B0_BASE,
89 USCI_B_I2C_RECEIVE_MODE
93 USCI_B_I2C_enable(USCI_B0_BASE);
96 USCI_B_I2C_clearInterrupt(USCI_B0_BASE,
97 USCI_B_I2C_RECEIVE_INTERRUPT +
98 USCI_B_I2C_STOP_INTERRUPT
100 USCI_B_I2C_enableInterrupt(USCI_B0_BASE,
101 USCI_B_I2C_RECEIVE_INTERRUPT +
102 USCI_B_I2C_STOP_INTERRUPT
108 __bis_SR_register(LPM0_bits + GIE);
119 #if defined(__TI_COMPILER_VERSION__) || defined(__IAR_SYSTEMS_ICC__)
120 #pragma vector=USCI_B0_VECTOR
122 #elif defined(__GNUC__)
123 __attribute__((interrupt(USCI_B0_VECTOR)))
127 switch (__even_in_range(UCB0IV,12)){
128 case USCI_I2C_UCRXIFG:
134 case USCI_I2C_UCSTPIFG:
__bic_SR_register_on_exit(LPM3_bits|GIE)
uint8_t * receivedDataPointer